# import subprocess
#
#
# def do_ping(ip):
#     res = subprocess.run(['ping', '-n', '2', '-l', '2000', '-w', '1000', ip], stdout=subprocess.PIPE)
#     if res.returncode == 0:
#         return True
#     return False
#
#
# print(do_ping('127.0.0.1'))
import requests

url = "http://127.0.0.1:9999"
res = requests.get(url, timeout=1)
print(res.status_code)
